home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
misc
/
avmNfax1_33.lha
/
AVMSuite
/
rexx
/
playamiga.avm
< prev
next >
Wrap
Text File
|
1994-06-24
|
1KB
|
49 lines
/*
BUGS: If you try to play to the amiga from more than one Player, you
will probably be in trouble since we use avmtemp:temp.iff
*/
parse upper arg fileName .
address command
if exists(filename || 'i') then do
avmbusy = getclip('AVMBusy')
say 'avmbusy=' avmbusy
if avmbusy = "" then call setclip('AVMBusy', '1')
else call setclip('AVMBusy', avmbusy + 1)
'avm:dsound -2' filename || 'i'
/*
'avm:agmsplaysound' filename || 'i'
*/
avmbusy = getclip('AVMBusy')
call setclip('AVMBusy', avmbusy - 1)
end; else do
lastPlayed = upper(getclip('playAmigaFile'))
playWhileConverting = upper(getclip('AVMPlayWhileConverting'))
if lastPlayed ~= fileName then do
say 'Converting'
if playWhileConverting = 'YES' then
'avm:adpcm2iff' fileName 'avmtemp:temp.iff' '-play'
else
'avm:adpcm2iff' fileName 'avmtemp:temp.iff'
if rc ~= 0 then exit
call setclip('playAmigaFile', fileName)
end
avmbusy = getclip('AVMBusy')
if avmbusy = "" then call setclip('AVMBusy', '1')
else call setclip('AVMBusy', avmbusy + 1)
'avm:dsound -2' 'avmtemp:temp.iff'
/*
'avm:agmsplaysound' 'avmtemp:temp.iff'
*/
avmbusy = getclip('AVMBusy')
call setclip('AVMBusy', avmbusy - 1)
say 'Done'
end